import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import AutoImport from 'unplugin-auto-import/vite'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue(), vueJsx(), AutoImport({
        imports: ['vue'],
        dts: 'src/auto-import.d.ts',
        eslintrc: {
            enabled: true, // Default `false`
            filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
            globalsPropValue: true, // (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
        },
    })],
})
